//
//  ListChatViewController.m
//  LYChat
//
//  Created by zxx_ 's compu on 31/3/16.
//  Copyright © 2016 Lxc.Yzc.Zxx. All rights reserved.
//

#import "ListChatViewController.h"

@interface ListChatViewController ()

@end

@implementation ListChatViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    // 设置需要显示哪些类型的会话.
    [self setDisplayConversationTypes:@[@(ConversationType_PRIVATE),
                                       @(ConversationType_DISCUSSION),
                                       @(ConversationType_CHATROOM),
                                       @(ConversationType_GROUP),
                                       @(ConversationType_APPSERVICE),
                                       @(ConversationType_SYSTEM)]];
    
    //  设置需要将哪些类型的会话在会话列表中聚合显示
    [self setCollectionConversationType:@[@(ConversationType_DISCUSSION),
                                          @(ConversationType_GROUP)]];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void)onSelectedTableRow:(RCConversationModelType)conversationModelType conversationModel:(RCConversationModel *)model atIndexPath:(NSIndexPath *)indexPath {
    RCConversationViewController *chat = [[RCConversationViewController alloc] init];
    chat.conversationType = model.conversationType;
    chat.targetId = model.targetId;
    chat.title = @"ListChatVC";
    [self.navigationController pushViewController:chat animated:YES];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
